import os
from dashscope import Generation, api_key

msgs = "你是谁"

response = Generation.call(
    api_key = os.getenv("DASHSCOPE_API_KEY"),
    model = "qwen-turbo",
    prompt=msgs
)
if response.status_code == 200:
    print(response.output.text)
else:
    print(response.status_code)
    print(response.message)